package com.ellricky

import android.content.Context
import com.andr.common.util.EmptyUtil
import com.andr.common.util.ToastUtil

fun checkLoginInput(context: Context, mobile: String?, pwd: String?): Boolean {
    return when {
        EmptyUtil.isEmpty(mobile) -> {
            ToastUtil.show(context, R.string.input_mobile)
            false
        }
        EmptyUtil.isEmpty(pwd) -> {
            ToastUtil.show(context, R.string.input_password)
            false
        }
        else -> true
    }
}
